package day28_35.day31;


import java.util.Scanner;

public class Main02 {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        while (scn.hasNext()){
            String str = scn.next();
            String[] numStr = str.split("<br/>");
            for (int i = 0; i < numStr.length; i++) {
                int n = Integer.parseInt(numStr[i]);
                System.out.print(n + " = ");
                fun(n);
                if (i != numStr.length - 1){
                    System.out.print("<br/>");
                }

            }

        }
    }
    public static void fun(int n){

        for (int i = 2; i <= Math.sqrt(n); i++) {
            if (n % i == 0){
                System.out.print(i + " * ");
                n = n / i;
                i -= 1;
            }
        }
        System.out.print(n);
    }
}
